package top.lshaci.learning.framework.mybatis.service.impl;

import org.springframework.transaction.annotation.Transactional;
import top.lshaci.learning.framework.mybatis.entity.User;
import top.lshaci.learning.framework.mybatis.mapper.UserMapper;
import top.lshaci.learning.framework.mybatis.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息 服务实现类
 * </p>
 *
 * @author lshaci
 * @since 2020-12-11
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void add(User user) {
        super.save(user);
    }
}
